package com.itheima.mp.mapper;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.itheima.mp.domain.po.User;
import org.apache.ibatis.annotations.Param;


public interface UserMapper extends BaseMapper<User> {


    void updateBalance(@Param("amount") Integer amount, @Param(Constants.WRAPPER) LambdaUpdateWrapper<User> wrapper);

    /**
     * 修改用户金额
     *
     * @param money
     * @param wrapper
     */
    void updateMoney(@Param("money") Integer money, @Param(Constants.WRAPPER) LambdaUpdateWrapper<User> wrapper);


}
